package schronisko;

import java.io.Serializable;

// Klasa zawiera informacje dotyczace zwierzaka
//
// ===========================================
public class Animal  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int ID_animal;		// ID zwierzaka
	private String name; 		// imie zwierzaka
	private String gender;		// P�e�
	private String race;		// Rasa
	private String date_of_birth;	// data urodzenia
	private String accessibility;
	private String add_date;
	private String last_inoculation;
	private String description;
	
	
	public Animal(String name, String gender, String race, String date, String accessibility, String add_date, String last_inoculation, String description) {
		this.name = name;
		this.gender = gender;
		this.race = race;
		date_of_birth = date;
		this.accessibility = accessibility;
		this.add_date = add_date;
		this.last_inoculation = last_inoculation;
		this.description = description;
	}
	public Animal(){
		
	}
	// Publiczne metody pobierania i ustawiania danych
	// Podobnie jak z klientem, do edycji
	
	public int getID() {
		return ID_animal;
	}
	public void setID(int ID) {
		ID_animal = ID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name){
		this.name = name;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getRace() {
		return race;
	}
	public void setRace(String race) {
		this.race = race;
	}
	public String getDate() {
		return date_of_birth;
	}
	public void setDate(String date) {
		date_of_birth = date;
	}
	public String getAccessibility(){
		return accessibility;
	}
	public void setAccessibility(String accessibility){
		this.accessibility = accessibility;
	}
	public String getAddDate(){
		return add_date;
	}
	public void setAddDate(String add_date){
		this.add_date = add_date;
	}
	public String getLastInoculation(){
		return last_inoculation;
	}
	public void setLastInoculation(String last_inoculation){
		this.last_inoculation = last_inoculation;
	}
	public String getDescription(){
		return description;
	}
	public void setDescription(String description){
		this.description = description;
	}
	public String toString(){
		return ID_animal + name + gender + race + date_of_birth + accessibility + add_date + last_inoculation + description;
	}
}
